package top.ed333.mcplugins.configurableevents.requirement;

import org.bukkit.event.Event;
import org.bukkit.event.player.PlayerEvent;
import org.jetbrains.annotations.NotNull;

public abstract class TargetedByPlayerEventReqGroup extends ReqGroup {
    public TargetedByPlayerEventReqGroup(String groupName, @NotNull Object ext) {
        super(groupName, ext);
    }

    @Override
    public boolean checkReq(@NotNull Event event) {
        if (!(event instanceof PlayerEvent)) return false;
        return checkReq((PlayerEvent) event);
    }

     public abstract boolean checkReq(@NotNull PlayerEvent event);
}
